package com.goldenKey.common.pojo.enumeration;

/**
 * 是否领取奖励状态
 */
public enum AwardStatusEnum {

    WITHOUT_RECEIVE(0, "无需领取"),
    RECEIVED(1, "已领取"),
    UNRECEIVED(2, "未领取");

    private Integer status;
    private String desc;

    AwardStatusEnum(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public static AwardStatusEnum getByStatus(Integer status) {
        for(AwardStatusEnum item : AwardStatusEnum.values()) {
            if(item.getStatus().equals(status)) {
                return item;
            }
        }
        return null;
    }

    public Integer getStatus() {
        return this.status;
    }
    public String getDesc() {
        return this.desc;
    }
}
